package com.poker.wiki.controller;

import com.poker.common.utils.Result;
import com.poker.wiki.Service.EbookSnapshotService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class EbookSnapshotController {

    @Resource
    EbookSnapshotService ebookSnapshotService;

    @GetMapping("/getStatistic")
    public Result getStatistic() {
        return Result.success(ebookSnapshotService.getStatistic());
    }

    @GetMapping("/get30DStatistic")
    public Result get30DStatistic() {
        return Result.success(ebookSnapshotService.get30DStatistic());
    }

}
